﻿@model XSTDZ.ERP.Application.DataContracts.StorehouseDto

@{
    ViewBag.Title = " - 新增仓库";
}
@section header{
     <link href="@Url.Content("~/Content/Controls.css")" rel="stylesheet" type="text/css" />
 <link href="@Url.Content("~/Content/Form.css")" rel="stylesheet" type="text/css" />
}
<div class="wp100">

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <table class="formtable">
    <thead>
        <tr>
            <th colspan="4">@* <h2>新增入库单</h2>*@
            <div id="toptoolbar"></div>
            </th>
        </tr>
    </thead>
    <tr>
       
        <td class="title"> @Html.LabelFor(model => model.StorehouseName)</td>
        <td>  @Html.TextBoxFor(model => model.StorehouseName, new { @class = "text" })
            @Html.ValidationMessageFor(model => model.StorehouseName)
        </td>

        <td class="title">@Html.LabelFor(model => model.StorehouseCode)</td>
        <td>  @Html.TextBoxFor(model => model.StorehouseCode, new { @class = "text" })
            @Html.ValidationMessageFor(model => model.StorehouseCode)
         </td>
  </tr>
   <tr>
       
        <td class="title"> @Html.LabelFor(model => model.StorehouseType)</td>
        <td>  @Html.DropDownListFor(model => model.StorehouseType, ViewBag.StorehouseType as IEnumerable<SelectListItem>, "--请选择仓库类别--")
            @Html.ValidationMessageFor(model => model.StorehouseType)
        </td>

        <td class="title">  @Html.LabelFor(model => model.OrgName)
             @Html.HiddenFor(model => model.OrgID)</td>
        <td>     @Html.TextBoxFor(model => model.OrgName, new { @class = "text" })<a href="javascript:void(0);" onclick="javascript:selectOrg();" >选择</a>
            @Html.ValidationMessageFor(model => model.OrgName)
         </td>
  </tr>


     <tr>
       
        <td class="title"> @Html.LabelFor(model => model.Remarks)</td>
        <td> @Html.TextBoxFor(model => model.Remarks, new { @class = "text" })
        @Html.ValidationMessageFor(model => model.Remarks)
        </td>

        <td class="title"></td>
        <td>  
         </td>
  </tr> 
     
 <tr>
        <td  colspan="4">
              <p class="divBtn">
            <input type="hidden" id="hidHttpPostState" name="hidHttpPostState" value="@ViewBag.PostState" />
             <input type="hidden" id="hidHttpRefeParent" name="hidHttpRefeParent" value="grid" />
            <input type="submit" value="添加仓库"  class="BtnSubmit" />
            <input type="button" value="@XSTDZ.ERP.Infrastructure.SystemConfig.BtnClose" id="btnFromClose" name="btnFromClose" class="BtnClose" />
       </p>
        </td>
    </tr>
    </table>
}
</div>
<script type="text/javascript">
    function selectOrg() {
        var returnValue = window.showModalDialog('../Org/SelectOrgTree?selectType=1', window, "help:No;resizable:No;status:No;scroll:yes;dialogWidth=300px;dialogHeight=300px");
        $("#OrgName").val(returnValue[0]);
        $("#OrgID").val(returnValue[1]);
    }

</script>
<script type="text/javascript" src="@Url.Content("~/Content/js/formBase.js")"></script>